package com.stylefeng.guns.modular.netcar.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.stylefeng.guns.modular.netcar.model.TaskReleaseReason;

import java.util.List;

/**
 * 
 * 驾驶员拒绝任务或释放任务原因字典 Mapper 接口 
 * @author sasazaixian
 * @Date 2018-10-23 11:04
 */
public interface TaskReleaseReasonMapper extends BaseMapper<TaskReleaseReason> {
    /**
     * 删除驾驶员拒绝任务或释放任务原因字典
     * @param  taskReleaseReason
     * @return    
     */
    int deleteTaskReleaseReason(TaskReleaseReason taskReleaseReason)throws Exception;
    /**
     * 批量驾驶员拒绝任务或释放任务原因字典
     * @param ids 主键id数组
     * @return     
     */
    int deleteBatchTaskReleaseReason(String[] ids)throws Exception;
    /**
     * 查询驾驶员拒绝任务或释放任务原因字典列表
     * @param taskReleaseReason 驾驶员拒绝任务或释放任务原因字典对象
     * @return      
     */
    List<TaskReleaseReason> selectListTaskReleaseReason(TaskReleaseReason taskReleaseReason)throws Exception;
    /**
     * 分页查询驾驶员拒绝任务或释放任务原因字典列表
     * @param page  分页对象
     * @param taskReleaseReason 系统操作对象
     * @return
     * @Date 2018-10-02
     */
    List<TaskReleaseReason> selectListTaskReleaseReason(Page page, TaskReleaseReason taskReleaseReason)throws Exception;


    /**
     * 同一个事务 互斥锁查询
     * @param taskReleaseReason 系统操作对象
     * @return     
     */
    List<TaskReleaseReason> selectListTaskReleaseReasonForUpdate(TaskReleaseReason taskReleaseReason)throws Exception;
    /**
     * 通过主键ID查询驾驶员拒绝任务或释放任务原因字典对象
     * @param id 主键id
     * @return    
     */
    TaskReleaseReason findTaskReleaseReasonById(String id)throws Exception;

    /**
     * 插入驾驶员拒绝任务或释放任务原因字典
     * @param taskReleaseReason
     * @return   
     */
    int insertTaskReleaseReason(TaskReleaseReason taskReleaseReason) throws Exception ;
    /**
     * 更新驾驶员拒绝任务或释放任务原因字典
     * @param taskReleaseReason
     * @return     
     */
    int updateTaskReleaseReason(TaskReleaseReason taskReleaseReason) throws Exception ;


}
